package offer;

/**
 * @Author SSK
 * @Date Created in 18:21 2019/8/4
 * @Description 左旋转字符串
 * @Version 1.0
 */
public class T44 {
    public String LeftRotateString(String str,int n) {
        if (str==null||str.length()==0) {
            return str;
        }
        n = n % str.length();
        return str.substring(n) + str.substring(0,n);
    }
}
